package com.example.life;

public class BeanLife {

    private  int id;

    public  BeanLife(){
        System.out.println("空参构造。。。。。。。。。");
    }

    public void setId(int id) {
        System.out.println("setter填充属性。。。。。");
        this.id = id;
    }

    public  void  initMehtod(){
        System.out.println("initMethod....");
    }

    public  void destoryMethod(){
        System.out.println("destoryMethod.....");
    }

    @Override
    public String toString() {
        final StringBuilder sb = new StringBuilder("BeanLife{");
        sb.append("id=").append(id);
        sb.append('}');
        return sb.toString();
    }
}
